package com.blb.service;

import com.blb.entity.Company;
import com.blb.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Set;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author tb
 * @since 2020-05-20
 */
public interface IUserService extends IService<User> {
    /**
     * 用户登录
     * @param account
     * @return
     */
    User login(String account);
    Integer userRegiest(Company company, User user);

    Set<String> getRoles(String userAccount);

    Set<String> getPermision(Set<String> roles);

}
